<template>
  <div>
    <input type="text" v-model="name">
  </div>
</template>

<script>
export default {
data() {
  return {
    name:''
  }
},
watch:{
  name(newVal,oldVal){
 console.log(newVal);
 console.log(oldVal);
  }
 
}
}
</script>

<style>

</style>